package Month07.day05;

public class array3 {
    public static void main(String[] args) {
        int s = jia(4);
        System.out.println(s);
    }

    public static int jia(int n) {
        int sum = 1;
        for (int i = 1; i <= n; i++) {
            sum *= i;
        }
        return sum;
    }
}
